package omm.services.imp;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import omm.dao.UserDAO;
import omm.domain.User;
import omm.services.UserServices;

@Service
public class UserServicesImp implements UserServices{

	private UserDAO userDAO;
	
	@Autowired
	public UserServicesImp(UserDAO userDAO){
		this.userDAO = userDAO;
	}
	
	@Override
	public User authenticate(User user) {
		return this.userDAO.authenticate(user);
	}

}
